<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1">
    <meta content="telephone=no" name="format-detection"/>
    <script>
        var isJsBridgeReady = false;
        var isZHKIOS= false;
        function readyFunc(device){
            isJsBridgeReady = true;
            if(device == 'true'){
              isZHKIOS = true;
            }
        }
    </script>
    <title>消费送券</title>
    <link rel="stylesheet" href="../css/pro_app.min.css"/>
    <link rel="stylesheet" href="../lib/swiper.min.css">
    <link rel="stylesheet" href="../lib/yz-sm.min.css">
    <link rel="stylesheet" href="../lib/mobiscroll/mobiscroll.custom-2.17.0.min.css">
</head>

<body>
<div class="page-group">
    <div class="page create-activity" id="createXfsqActivityPage">

        <script type="text/template" id="activity_xfsq_data_tpl">
               <div class="step">
                    <div class="process-wrap">
                        <div class="process-bar">
                            <div class="inner" style="width:0%;"></div>
                        </div>
                        <div class="circles">
                            <span class="zhk-navi_circle active"></span>
                            <span class="zhk-navi_circle"></span>
                        </div>
                        <div class="text">
                            <span class="active">优惠券信息</span>
                            <span>活动信息</span>
                        </div>
                    </div>
                    <div class="xfsq-wrap">
                       {{if voucherData && voucherData.length == 5 }}
                        <div class="btn-add-quan disabled">
                       {{else}}
                        <div class="btn-add-quan">
                       {{/if}}
                            <i class="zhk-nav_add"></i>添加优惠券
                        </div>
                        <ul class="quan-list">
                          {{if voucherData && voucherData.length>0}}
                           {{each voucherData as data num}}
                            <li id="voucherQuan" index_num={{num}}>
                                <div class="quan">
                                    <div class="price"><span><i>¥</i>{{data.voucherWorthValue.split('.')[0]}}<b>{{data.voucherWorthValue.split('.')[1]==undefined?"":"."+data.voucherWorthValue.split('.')[1]}}</b></span></div>
                                    <div class="type">全场代金券</div>
                                    <div class="info-list">
                                        <div>
                                            <ul>
                                                <li>订单满{{data.receiveConditionMoney}}元可用</li>
                                                <li>消费满{{data.voucherMinConsume}}元可用</li>
                                            </ul>
                                        </div>
                                    </div>
                                    <i class="zhk-list_gb" index_num={{num}}></i>
                                </div>
                            </li>
                           {{/each}}
                          {{/if}}
                        </ul>
                    </div>
                      <div class="activity-setting dpyx">
                        <div>
                         <ul class="item-list">
                          <li>
                            <span>券有效期</span>
                            <div>
                                <div class="switch-label" id="quan-deadline"><span>{{if isRelativeTime == true}}相对时间{{else}}指定时间{{/if}}</span><i class="zhk-list_rarrow"></i>
                                </div>
                               {{if isRelativeTime == true}}
                                <p>
                               {{else}}
                                <p style="display:none;">
                               {{/if}}
                                    领取后<input type="number" maxlength="" placeholder="30" class="input-day-amount" id="relativeValidDays"/>天内有效
                                </p>
                               {{if isRelativeTime == true}}
                                <p style="display:none;">
                               {{else}}
                                <p>
                               {{/if}}
                                    <input type="text" maxlength="" class="input-datetime" id="voucher-date-start"
                                           placeholder="开始日期" readonly id="date-start" value="{{voucherStartTime}}"/>
                                      至
                                    <input type="text" maxlength="" class="input-datetime" id="voucher-date-end"
                                           placeholder="结束日期"   readonly id="date-end" value="{{voucherEndTime}}"/>
                                </p>
                            </div>
                          </li>
                        </ul>
                       </div>
                    </div>
                    <div class="btn-wrap">
                        <div class="btn disabled" id="nextBtn">下一步</div>
                    </div>
              </div>
           </div>
        </script>
        <div class="scroll-view">
            <ul class="header">
                <li class="left"><a href="#" class="back"><i class="zhk-nav_back"></i>返回</a></li>
                <li class="middle">消费送券</li>
                <li class="right"></li>
            </ul>
            <div class="page-body" id="xfsqActivityDataContainer">

            </div>
            <div class="dailog-form" id="discountQuanDiv">
                <div class="layer-overlay"></div>
                <div class="form-wrapper">
                    <ul>
                        <li>
                            <div class="form-title">
                                添加优惠券
                            </div>
                        </li>
                        <li>
                            <span>领取条件</span>
                            <div>
                                订单满
                                <input type="number" class="input-money-order" id="receiveConditionMoney" placeholder="请填写"  oninput="if(value.length>5){value=value.slice(0,5);}else if(value > 50000){value=50000;}" />元
                            </div>
                        </li>
                        <li>
                            <span>券面额</span>
                            <div>
                                <input type="number" placeholder="请填写" maxlength="" class="input-money" id="voucherAmount"  oninput="if(value>999.99){value=999.99}" />元
                            </div>
                        </li>
                        <li>
                            <span>券消费门槛</span>
                            <div>
                                订单满<input type="number" class="input-money-order" placeholder="请填写" id="voucherMinConsumeAmount" oninput="if(value>999.99){value=999.99}" />元
                            </div>
                        </li>

                        <li>
                            <div class="form-btn">
                                <div class="cancel" id="quan-cancel">取消</div>
                                <div class="sure disabled" id="quan-sure">确定</div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
 <script src="../lib/zepto.min.js"></script>
 <script src="../lib/yz-sm.min.js"></script>
 <script src="../lib/mobiscroll/mobiscroll.custom-2.17.0.min.js"></script>
 <script src="../lib/template.js"></script>
 <script src="../lib/swiper.min.js"></script>
 <script src="../base/recalc.js" compress="../base/base.js"></script>
 <script src="../base/dialog.js" compress="../base/base.js"></script>
 <script src="../base/common.js" compress="../base/base.js"></script>
 <script src="../base/appservice.js" compress="../base/base.js"></script>
 <script src="../base/h5service.js" compress="../base/base.js"></script>
 <script src="../js/activityCreateUtil.js" compress="../js/main.js"></script>
 <script src="../js/createXfsqActivityA.js" compress="../js/main.js"></script>
 <script src="../js/createXfsqActivityC.js" compress="../js/main.js"></script>

</body>
</html>
